package switchdemo;

import java.util.Scanner;

public class SwitchDemo1 {
	public static void main(String[] args) {
		Scanner scan = new Scanner(System.in);
		char color = '红';
		switch(color) {
		case '红':
			System.out.println("stop");
			break;
		case '黄':
			System.out.println("slow");
			break;
		case '绿':
			System.out.println("run");
			break;
		default:
			System.out.println("erro");
		}
	}
}
